package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 药物表
 * </p>
 *
 * @author zqb
 * @date 2024-08-09 16:23:52
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_hl7_medicine")
public class BHl7Medicine extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 药品id
     */
    @TableField(value = "medicine_ident", condition = LIKE)
    @Schema(description = "药品id")
    private String medicineIdent;
    /**
     * 药品名称
     */
    @TableField(value = "medicine_name", condition = LIKE)
    @Schema(description = "药品名称")
    private String medicineName;
    /**
     * 剂型id
     */
    @TableField(value = "type_id", condition = LIKE)
    @Schema(description = "剂型id")
    private String typeId;
    /**
     * 剂型名称
     */
    @TableField(value = "type_name", condition = LIKE)
    @Schema(description = "剂型名称")
    private String typeName;
    /**
     * 规格
     */
    @TableField(value = "spec", condition = LIKE)
    @Schema(description = "规格")
    private String spec;
    /**
     * 包装量
     */
    @TableField(value = "packing_volume", condition = EQUAL)
    @Schema(description = "包装量")
    private Integer packingVolume;
    /**
     * 包装单位
     */
    @TableField(value = "packing_unit", condition = LIKE)
    @Schema(description = "包装单位")
    private String packingUnit;
    /**
     * 药品最小单位
     */
    @TableField(value = "minimum_unit", condition = LIKE)
    @Schema(description = "药品最小单位")
    private String minimumUnit;
    /**
     * 剂量
     */
    @TableField(value = "dose", condition = LIKE)
    @Schema(description = "剂量")
    private String dose;
    /**
     * 剂量单位
     */
    @TableField(value = "dose_unit", condition = LIKE)
    @Schema(description = "剂量单位")
    private String doseUnit;
    /**
     * 是否删除
     */
    @TableField(value = "is_deleted", condition = EQUAL)
    @Schema(description = "是否删除")
    private Integer isDeleted;
    /**
     * 抗菌限级
     */
    @TableField(value = "kang_jun_xj", condition = LIKE)
    @Schema(description = "抗菌限级")
    private String kangJunXj;
    /**
     * 抗生限级
     */
    @TableField(value = "kang_sheng_xj", condition = LIKE)
    @Schema(description = "抗生限级")
    private String kangShengXj;



}
